import Vue from 'vue'
import Router from 'vue-router'
import Home from './views/Home.vue'
import buyCart from './components/buyCart'
import Profile from './views/Profile'
Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '',
      redirect: '/home/'
    },
    {
      path: '/home',
      name: 'Home',
      component: Home
    },
    {
      path: '/buycart',
      name: 'buyCart',
      component: buyCart
    },
    {
      path: '/profile',
      name: 'Profile',
      component: Profile
    }
  ]
})
